/**
 * 
 */
package com.HibernateRecepies.Domain;

import java.util.Set;

/**
 * @author Ignatiues charles arun
 * 
 *         Jul 10, 2011
 */
public class Order3_4
	{

		private long id;

		private Contact3_4 weekday_contact;

		private Contact3_4 holiday_contact;

		private Set contacts;

		private String areaCode;

		/**
		 * @return the id
		 */
		public long getId()
			{
				return id;
			}

		/**
		 * @param id
		 *            the id to set
		 */
		public void setId(long id)
			{
				this.id = id;
			}

		/**
		 * @return the weekday_contact
		 */
		public Contact3_4 getWeekday_contact()
			{
				return weekday_contact;
			}

		/**
		 * @param weekdayContact
		 *            the weekday_contact to set
		 */
		public void setWeekday_contact(Contact3_4 weekdayContact)
			{
				weekday_contact = weekdayContact;
			}

		/**
		 * @return the holiday_contact
		 */
		public Contact3_4 getHoliday_contact()
			{
				return holiday_contact;
			}

		/**
		 * @param holidayContact
		 *            the holiday_contact to set
		 */
		public void setHoliday_contact(Contact3_4 holidayContact)
			{
				holiday_contact = holidayContact;
			}

		/**
		 * @return the contacts
		 */
		public Set getContacts()
			{
				return contacts;
			}

		/**
		 * @param contacts
		 *            the contacts to set
		 */
		public void setContacts(Set contacts)
			{
				this.contacts = contacts;
			}

		/**
		 * @return the areaCode
		 */
		public String getAreaCode()
			{
				return areaCode;
			}

		/**
		 * @param areaCode
		 *            the areaCode to set
		 */
		public void setAreaCode(String areaCode)
			{
				this.areaCode = areaCode;
			}

		/*
		 * (non-Javadoc)
		 * 
		 * @see java.lang.Object#hashCode()
		 */
		@Override
		public int hashCode()
			{
				final int prime = 31;
				int result = 1;
				result = prime * result
						+ ((areaCode == null) ? 0 : areaCode.hashCode());
				result = prime * result + (int) (id ^ (id >>> 32));
				return result;
			}

		/*
		 * (non-Javadoc)
		 * 
		 * @see java.lang.Object#equals(java.lang.Object)
		 */
		@Override
		public boolean equals(Object obj)
			{
				if (this == obj)
					return true;
				if (obj == null)
					return false;
				if (!(obj instanceof Order3_4))
					return false;
				Order3_4 other = (Order3_4) obj;
				if (areaCode == null)
					{
						if (other.areaCode != null)
							return false;
					} else if (!areaCode.equals(other.areaCode))
					return false;
				if (id != other.id)
					return false;
				return true;
			}

	}
